<?php if (!defined('THINK_PATH')) exit();?><!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no"/>
    <title>账号设置</title>
    <link rel="stylesheet" href="/Public/Admin/css/dashboard.css"/>
</head>
<body>
<div class="row full-width" style="min-height:980px">
    <form action="<?php echo U('Admin/Index/setting');?>" method="post">
        <div class="small-12 columns">
            <div class="block">
                <div class="block-content">
                    <div class="small-12 medium-8 medium-centered large-6 large-centered columns">
                        <div class="auth-setting">
                            <div class="panel radius">
                                1.修改个人信息时，为保证安全，需要输入原密码 <br>
                                2.修改邮箱需要重新进行验证
                            </div>
                            <div class="item">
                                <label for="old_password">输入原密码</label>
                                <input type="password" name="old_password" id="old_password" autocomplete="off" placeholder="如需修改信息，请输入您目前的账户密码">
                                <?php if($password_code == 200): ?><span class="label success radius"><?php echo ($password_msg); ?></span>
                                    <?php elseif($password_code == 400): ?>
                                    <span class="label alert radius"><?php echo ($password_msg); ?></span><?php endif; ?>
                            </div>
                            <div class="item">
                                <label for="new_password">输入新密码</label>
                                <input type="password" name="new_password" id="new_password" autocomplete="off" placeholder="6位数字字母组合，不能以_开头">
                                <?php if($new_password_code == 400): ?><span class="label alert radius"><?php echo ($new_password_msg); ?></span><?php endif; ?>
                            </div>
                            <div class="item">
                                <label for="old_mail">原邮箱</label>
                                <input type="text" id="old_mail" disabled="" placeholder="<?php echo ($email); ?>">
                            </div>
                            <div class="item">
                                <label for="new_mail">输入新邮箱</label>
                                <input type="text" id="new_mail" name="new_email" placeholder="为了保证您及时收到Yuncms的通知，修改邮箱需要重新进行验证" value="">
                                <?php if($mail_code == 200): ?><span class="label success radius"><?php echo ($mail_msg); ?></span>
                                    <?php elseif($mail_code == 400): ?>
                                    <span class="label alert radius"><?php echo ($mail_msg); ?></span>
                                    <?php elseif($mail_code == 401): ?>
                                    <span class="label alert radius"><?php echo ($mail_msg); ?></span><?php endif; ?>
                            </div>
                            <div class="item">
                                <label for="old_phone">原手机号</label>
                                <input type="text" id="old_phone" disabled="" value="<?php echo ($phone); ?>">
                            </div>
                            <div class="item">
                                <label for="new_phone">输入新手机号</label>
                                <input type="text" id="new_phone" name="new_mobile">
                                <?php if($phone_code == 400): ?><span class="label alert radius"><?php echo ($phone_msg); ?></span><?php endif; ?>
                            </div>
                            <div class="item split">
                                <label for="old_phone">QQ客服</label>
                                <input type="text" name="qq" value="<?php echo ($qq); ?>" onkeyup="value=value.replace(/[^\d]/g,'') " ng-pattern="/[^a-zA-Z]/" maxlength="10">
                                <?php if($qq_code == 400): ?><span class="label alert radius"><?php echo ($phone_msg); ?></span><?php endif; ?>
                            </div>
                            <div class="sub">
                                <input type="submit" name="submit" class="button small success round button-shadow" value="保存个人设置">
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </form>
</div>
</body>
</html>